package org.breathe.command.impl.ping;

import org.breathe.command.Command;
import org.breathe.command.CommandType;
import org.breathe.protocal.Resp;
import org.breathe.protocal.decode.SimpleString;

/**
 * @author: breathe
 * @createTime: 2025-05-12
 */
public class Ping implements Command {
    @Override
    public CommandType getType() {
        return CommandType.PING;
    }

    @Override
    public void setContext(Resp[] array) {
        //don't need context;
    }

    @Override
    public Resp handle() {
        return new SimpleString("PONG");
    }

    @Override
    public boolean writeCommand() {
        return false;
    }
}
